import Vue from 'vue'
import App from './App.vue'
import './styles/global.less'
import router from './router'
import { Message } from './utils/'
// import './mock'
import './eventBus'
import loading from './directives/loading/'
import lazy from './directives/lazy/'
import store from './store'
Vue.directive('loading', loading)
Vue.directive('lazy', lazy)
store.dispatch('setting/fetchSetting')

Vue.config.productionTip = false
Vue.prototype.$message = Message

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
